/*
 * @Description: 就是一个编码添加
 */
import axiosBase from "@/api/axios";
export default {
  /**
   * @description: 分页获取列表 *代表必填
   * @param {Object}  *
   */
  queryPageList(params) {
    return axiosBase.post("/v3/40089-process-v2/productionProcesses/queryPageByCondition", {
      page: params.page,
      size: params.size,
      entity: params.entity
    });
  },
  /**
   * @description: 条件获取列表 *代表必填
   * @param {Object}  *
   */
  queryByConditionList(params) {
    return axiosBase.post("/v3/40089-process-v2/productionProcesses/queryByCondition", {...params,"organizationNo":sessionStorage.organizationNo});
  },
  /**
   * @description: 添加数据项
   * @param {Object}  *
   */
  add(params) {
    return axiosBase.post("/v3/40089-process-v2/productionProcesses/add", { ...params,"organizationNo":sessionStorage.organizationNo});
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  del(params) {
    return axiosBase.post("/v3/40089-process-v2/productionProcesses/delListByNo", { ...params,"organizationNo":sessionStorage.organizationNo});
  },
   /**
   * @description: 点击修改
   * @param {Object}  *
   */
   edit(params) {
    return axiosBase.post("/v3/40089-process-v2/productionProcesses/edit", { ...params,"organizationNo":sessionStorage.organizationNo});
  },
  /**
  * @description: 点击修改
  * @param {Object}  *
  */
  queryEquipByNo(params) {
   return axiosBase.get(`/v3/40089-process-v2/productionProcesses/queryEquipByNo?no=${params}&organizationNo=${sessionStorage.organizationNo}`);
 }
};
